#include "MoveFileThread.h"
#include <QFile>

MoveFileThread::MoveFileThread(void)
{
}


MoveFileThread::~MoveFileThread(void)
{
}
void MoveFileThread::run()
{
	if (!QFile::rename(from_path_,to_path_))
	{
		QFile::copy(from_path_,to_path_);
		QFile::remove(from_path_);
	}
	emit remind();
}
void MoveFileThread::setFromTo(const QString& from,const QString& to)
{
	from_path_ = from;
	to_path_ = to;
}